//
//  GYHorFavoritesCell.m
//  GoodLuck
//
//  Created by apple on 2018/3/16.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYHorFavoritesCell.h"

@interface GYHorFavoritesCell ()
@property (weak, nonatomic) IBOutlet UIImageView *storeImageView;
@property (weak, nonatomic) IBOutlet UILabel *storeNameLable;
@property (weak, nonatomic) IBOutlet UILabel *storeFansLable;
@property (weak, nonatomic) IBOutlet UILabel *storeGoodsLable;


@end
@implementation GYHorFavoritesCell
- (IBAction)deleteBtuClick:(UIButton *)sender {
    self.deleteFavoritesStoreCallBack(self.currentRow);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setStores:(GYStoreFavotites *)stores {
    _stores = stores;
    
    [self.storeImageView sd_setImageWithURL:[NSURL URLWithString:stores.store_avatar_url] placeholderImage:[UIImage imageNamed:@"4"]];
    self.storeNameLable.text = stores.store_name;
    self.storeGoodsLable.text = [NSString stringWithFormat:@"商品: %d件",stores.goods_count];
}


@end
